package com.youfan.service;

import com.youfan.entity.YoufanProduct;
import com.youfan.re.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "productadmin", path = "product")
public interface ProductService {


    @PostMapping("view")
    @ResponseBody
    public Result<YoufanProduct> view(@RequestBody YoufanProduct youfanProduct);


    @PostMapping("updateWithoutFile")
    @ResponseBody
    public Result<YoufanProduct> updateWithoutFile(@RequestParam(value = "formdata" ) String formdata);
}
